<template>
  <div>
    <h1>MovieList</h1>
    <button @click="useMovieList.MovieListInformation">点击获取电影列表</button>
    <ul>
      <li v-for="Movie in useMovieList.MovieList" :key="Movie.albumId">
        <h3> {{ Movie.albumName }} </h3>
        <span> {{ Movie.description }} </span>
      </li>
    </ul>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "MovieList",
});
</script>

<script setup lang="ts">
import useMovieListStore from "../../store/modules/MovieList.ts";
const useMovieList = useMovieListStore();
</script>

<style scoped></style>
